package cn.ruituo.adv3;
//高端枚举
public enum  Planet {
    EARTH("地球",4444,3333.9F)
    ,Marhs("火星",4414,6333.9F)
    ,Mercury("水星",4444,3333.9F)
   , Venus("金星",4444,3333.9F);

    private String name;
    private int ton;//万吨
    private float distanceToSun;
    private Planet(String n,int t,float d){
        this.name=n;
        this.ton=t;
        this.distanceToSun=d;
    }

    @Override
    public String toString() {
        return "Planet{" +
                "name='" + name + '\'' +
                ", ton=" + ton +
                ", distanceToSun=" + distanceToSun +
                '}';
    }
}
